home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.682 < prev    next >
Text File  |  1992-02-06  |  2KB  |  50 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw12740
  3. \paperh8500
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 Appkit TextFieldCell  Alignment Scrollable Text \
  8.     \
  9. Q:  
  10. \fc0 When I use the Action Cell method 
  11. \f1\fs24 setAlignment:
  12. \f0\fs28  in conjunction with the Cell method 
  13. \f1\fs24 setScrollable
  14. \f0\fs28 :, I experience some inconsistent behavior. If I have called 
  15. \f1\fs24 [myTextCell
  16. \f0\fs28  
  17. \f1\fs24 setAlignment:NX_CENTERED]
  18. \f0\fs28  and 
  19. \f1\fs24 [myTextCell setScrollable:YES]
  20. \f0\fs28 , the display does not update in the cell. However, when the TextFieldCell is sent 
  21. \f1\fs24 [myTextCell setScrollable:NO]
  22. \f0\fs28 , then the display works fine.\
  23.  
  24. \i \
  25.  
  26. \i0 A:  The Text Object does not support scrolling for centered or right-justified text.  To get proper display, you have to disable scrolling with  
  27. \f1\fs24 [myTextCell
  28. \f0\fs28  
  29. \f1\fs24 setScrollable:NO]
  30. \f0\fs28  when using the method 
  31. \f1\fs24 setAlignment
  32. \f0\fs28 : with the values 
  33. \f1\fs24 NX_CENTERED
  34. \f0\fs28  or 
  35. \f1\fs24 NX_RIGHTALIGNED
  36. \f0\fs28 .  If your text is left-justified, scrolling will work fine, i.e. you can use
  37. \f1\fs24 [myTextCell setAlignment:NX_LEFTALIGNED]
  38. \f0\fs28  with 
  39. \f1\fs24 [myTextCell setScrollable:YES]
  40. \f0\fs28 .
  41. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fc0 \
  42.  
  43. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 \
  44. Valid for 1.0\
  45. Valid for 2.0\
  46. \
  47. QA682\
  48. \
  49.  
  50.